home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 June / june_2001.iso / Html / CuteHtml / setup.exe / +PREVENT VIEWING SOURCE CODE (IE ONLY).JS < prev    next >
Encoding:
Text File  |  1999-09-03  |  450 b   |  17 lines

  1. <script language="JavaScript">
  2. <!-- This Script And Over 400 Others Found At --!>
  3. <!--    Java City 2000 http://www.jc2k.com    --!>
  4.  
  5. <!-- This Script will prevent people from right clicking in the web browser to show the
  6. source code. This script only works with Internet Explorer -->
  7.  
  8. function click() {
  9. if (event.button==2) {
  10. alert('You are not allowed to look at my source code');
  11. }
  12. }
  13. document.onmousedown=click
  14. // --> 
  15.  
  16. </script>
  17.